package at.fhooe.engine.visuals;

import java.awt.Color;
import java.awt.Graphics2D;

public class WallVisual implements Visual {

	private Color m_color;
	private int m_size;
	private boolean m_fill;
	
	public WallVisual(Color color, int size, boolean fill){
		m_color = color;
		m_size = size;
		m_fill = fill;
	}
	
	
	public void draw(Graphics2D graphics) {
		graphics.setColor(m_color);
		if(m_fill){
			graphics.fillRect(0, 0, m_size, m_size);
		} else{
			graphics.drawRect(0, 0, m_size, m_size);
		}
	}

}
